/* 主页整体样式 */
.homePage {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding-bottom: 40px;
}

/* 轮播图区域样式 */
.carouselSection {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel {
  height: 300px;
}

.carouselItem {
  cursor: pointer;
  height: 300px;
}

.carouselContent {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carouselOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.3));
  display: flex;
  align-items: center;
}

.carouselText {
  color: white;
  padding: 32px;
  max-width: 600px;
}

.carouselText h3 {
  color: white;
  margin-bottom: 16px;
}

.carouselText p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

/* 内容区域样式 */
.contentSection {
  margin-bottom: 32px;
}

/* 区块标题样式 */
.sectionHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.sectionHeader h4 {
  margin-bottom: 0;
}

/* 快速入口样式 */
.quickAccessSection {
  margin-bottom: 32px;
}

.quickAccessCard {
  display: flex;
  align-items: center;
  height: 100%;
  transition: all 0.3s;
}

.quickAccessCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.quickAccessIcon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #1890ff;
  color: white;
  margin-right: 16px;
}

.quickAccessContent {
  flex: 1;
}

.quickAccessContent h5 {
  margin-bottom: 4px;
}

/* 比赛日程样式 */
.contestSection {
  margin-bottom: 32px;
}

.contestList {
  background-color: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-height: 300px; /* 设置最低高度，与快速入口保持一致 */
}

.contestItem {
  cursor: pointer;
  padding: 16px 24px;
  transition: background-color 0.3s;
}

.contestItem:hover {
  background-color: rgba(24, 144, 255, 0.04);
}

.contestInfo {
  flex: 1;
}

.contestTitle {
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.contestTitle :global(.ant-tag) {
  margin-left: 12px;
}

.contestTime, .contestParticipants {
  color: rgba(0, 0, 0, 0.45);
  font-size: 14px;
  margin-top: 4px;
}

/* 右侧统计卡片样式 */
.statsCard {
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.statsFooter {
  text-align: center;
}

/* 运势抽签卡片样式 */
.fortuneCard {
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-height: 200px; /* 与快速入口卡片高度对齐 */
  display: flex;
  flex-direction: column;
}

.fortuneContent {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.fortuneIcon {
  font-size: 48px;
  margin-bottom: 16px;
}

.fortuneText p {
  margin-bottom: 16px;
  color: rgba(0, 0, 0, 0.65);
  font-size: 14px;
}

.fortuneButton {
  min-width: 100px;
}

/* 比赛卡片样式 */
.contestCard {
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.contestContent {
  padding: 0;
}

/* 日历卡片样式 */
.calendarCard {
  margin-bottom: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.miniCalendar {
  font-size: 12px;
}

.miniCalendar :global(.ant-picker-calendar-date-content) {
  height: 18px;
  line-height: 18px;
}

/* 学习建议区域样式 */
.suggestionsSection {
  margin-top: 24px;
}

.suggestionsCard {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.suggestionsList {
  margin: 16px 0 0;
  padding-left: 20px;
}

.suggestionsList li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.suggestionsList li span[role="img"] {
  margin-right: 8px;
  color: #1890ff;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .carousel {
    height: 200px;
  }
  
  .carouselItem {
    height: 200px;
  }
  
  .carouselText {
    padding: 24px;
  }
}
